package DB;

import Command.SetCommand;

import java.io.IOException;

public interface MiniDb {
    void put(SetCommand command) ;

    String get(String key) throws IOException;

    public void remove(String key);

    public void LoadAOF(String path);



    public boolean IsFull();

    public void EliminateDb();


    /**
     * // 创建任务队列
     * ScheduledExecutorService scheduledExecutorService =   Executors.newScheduledThreadPool(10); // 10 为线程数量
     * // 执行任务
     * scheduledExecutorService.scheduleAtFixedRate(() -> { System.out.println("Run Schedule：" + new Date());}, 1, 3, TimeUnit.SECONDS); // 1s 后开始执行，每 3s 执行一次
     */


}
